﻿using MediatR;
using RBAC.MaHaiBo.Entity;
using System.ComponentModel.DataAnnotations;

namespace RBAC.MaHaiBo.API.Application.Command.LeaveCommand
{
    public class LeaveCreateCommand:IRequest<int>
    {
        /// <summary>
        /// 申请编号
        /// </summary>
        public int Lid { get; set; }
        /// <summary>
        /// 请假人编号
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 请假人
        /// </summary>
        public string? UName { get; set; }
        /// <summary>
        /// 所属部门
        /// </summary>
        public int department { get; set; }
        /// <summary>
        /// 请假列表
        /// </summary>
        public string? Ltype { get; set; }
        /// <summary>
        /// 开始请假时间
        /// </summary>
        public DateTime? KAddtime { get; set; }
        /// <summary>
        /// 结束请假时间
        /// </summary>
        public DateTime? JAddtime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public int GZTime { get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime BdTime { get; set; }
        /// <summary>
        /// 请假理由
        /// </summary>
        public string? LSdata { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public int? BTName { get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime AddTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 审批状态
        /// </summary>
        public LeaveSdate LSdate { get; set; } = (LeaveSdate)10;
        /// <summary>
        ///不通过的理由
        /// </summary>
        public string? NotSdate { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
